package com.csap.framework.oauth2.server.model;

import com.csap.framework.annotation.apidoc.ApiModel;
import com.csap.framework.annotation.apidoc.ApiModelProperty;
import com.csap.framework.annotation.apidoc.Description;
import com.csap.framework.oauth2.server.entity.ScopeEntity;
import com.csap.mybatisplus.extension.activerecord.CloneModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 作用域
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-07-25 23:51:30
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "作用域", value = "scope对象")
@Description(value = "作用域Model")
public class ScopeModel extends CloneModel<ScopeModel, ScopeEntity> {
    @ApiModelProperty(description = "作用域ID", value = "作用域ID")
    private Long scopeId;
    @ApiModelProperty(description = "创建时间", value = "创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty(description = "作用域名称", value = "作用域名称")
    private String name;
    @ApiModelProperty(description = "作用域描述", value = "作用域描述")
    private String descr;
    @ApiModelProperty( value = "是否删除")
    private Integer del;
    @ApiModelProperty(value = "权限")
    private List<String> permissions;
}
